// 厨师做好饭菜后的显示图标

// iconfinder_Food-Dome_379366.png

// 在厨师做好饭菜后显示1.5秒

let food_finish = document.createElement('div')

food_finish.style.position = 'absolute'
food_finish.style.left = '-20%'
food_finish.style.bottom = '-5%'
food_finish.style.display = 'none'
food_finish.style.backgroundImage = "url('./restaurant/iconfinder_Food-Dome_379366.png')"
food_finish.style.backgroundSize = '100% 100%'
food_finish.style.height = '60px'
food_finish.style.width = '60px'

function showfood(cooker) {
    let cooker_id = cook.children[cooker]
    cooker_id.appendChild(food_finish)
    food_finish.style.display = 'block'
    setTimeout(() => {
        food_finish.style.display = 'none'
    }, 1500)
}

// 顾客吃好饭菜后的显示图标

// iconfinder_Euro-Coin_379523.png

// 在顾客吃好饭菜后显示1.5秒

let custom_finish = document.createElement('div')

custom_finish.style.position = 'absolute'
custom_finish.style.left = '-20%'
custom_finish.style.bottom = '-20%'
custom_finish.style.display = 'none'
custom_finish.style.backgroundImage = "url('./restaurant/iconfinder_Euro-Coin_379523.png')"
custom_finish.style.backgroundSize = '100% 100%'
custom_finish.style.height = '60px'
custom_finish.style.width = '60px'    

function showmoney(customer) {

    let custom_id = custom.children[customer]
    custom_id.appendChild(custom_finish)
    custom_finish.style.display = 'block'
    setTimeout(() => {
        custom_finish.style.display = 'none'
    }, 1500)
}